
public class practice_10 {
/*
 *  public static void main(String[] args) {
        while(true) {
            int number = (int) (Math.random() * 10);
            System.out.println(number);
            if(number == 8) {
                System.out.println("hhhhh");
                break;
            }
        }
    }
 */
	 public static void main(String[] args) {
	        int number;
	        do {
	            number = (int) (Math.random() * 10);
	            System.out.println(number);
	        } while(number != 8);
	        System.out.println("hhhhh");
	    }
}
